package com.aegis.autodeployplugin.entity.params;

/**
 * desc     :   钉钉 post 请求体
 *
 *  更多消息类型见：
 *      https://developers.dingtalk.com/document/app/custom-robot-access/title-72m-8ag-pqw
 *
 * @author : Aegis_Lee
 * date     : 2021/7/20
 * email    : 476810504@qq.com
 */
public class DingTalkRequestBody {
    private String msgtype;
    private DingTalkLinkModel link;

    /**
     * link 类型的消息
     *
     * @param link {@link DingTalkLinkModel} link 类型的消息体
     */
    public DingTalkRequestBody(DingTalkLinkModel link) {
        this.msgtype = "link";
        this.link = link;
    }
}
